package com.qingfeng.client.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
@ApiModel(value = "com.qingfeng.client.bean.OrderGoods")
@Data
@TableName(value = "order_goods")
public class OrderGoods {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 交易号
     */
    @TableField(value = "trade_id")
    @ApiModelProperty(value = "交易号")
    private Long tradeId;

    /**
     * 商品号
     */
    @TableField(value = "goods_id")
    @ApiModelProperty(value = "商品号")
    private Long goodsId;

    /**
     * 购买数量
     */
    @TableField(value = "num")
    @ApiModelProperty(value = "购买数量")
    private Integer num;

    /**
     * 单价
     */
    @TableField(value = "price")
    @ApiModelProperty(value = "单价")
    private Integer price;

    /**
     * 实际付款
     */
    @TableField(value = "total_price")
    @ApiModelProperty(value = "实际付款")
    private Integer totalPrice;

    /**
     * 单个物品的交易状态,1：未付款，2:已付款，-1：售后(肯定是已付款)
     */
    @TableField(value = "stat")
    @ApiModelProperty(value = "单个物品的交易状态,1：未付款，2:已付款，-1：售后(肯定是已付款)")
    private Integer stat;

    /**
     * 商品码
     */
    @TableField(value = "goods_code")
    @ApiModelProperty(value = "商品码")
    private String goodsCode;

    /**
     * 商品名字
     */
    @TableField(value = "goods_name")
    @ApiModelProperty(value = "商品名字")
    private String goodsName;

    /**
     * 商品属性合集，中间用；分割
     */
    @TableField(value = "goods_attrs")
    @ApiModelProperty(value = "商品属性合集，中间用；分割")
    private String goodsAttrs;

    /**
     * 商品图片
     */
    @TableField(value = "goods_pic")
    @ApiModelProperty(value = "商品图片")
    private String goodsPic;

    /**
     * 店铺id
     */
    @TableField(value = "store_id")
    @ApiModelProperty(value = "店铺id")
    private Long storeId;

    /**
     * 买家留言
     */
    @TableField(value = "comment")
    @ApiModelProperty(value = "买家留言")
    private String comment;

    /**
     * 店铺订单id
     */
    @TableField(value = "order_store_id")
    @ApiModelProperty(value = "店铺订单id")
    private Long orderStoreId;

//    @TableField(exist = false)
//    private AfterSell afterSell;
}
